import Mock from 'mockjs'

export default {
  getUserData: () => {
    return {
      code: 2000,
      data: {
        list: [
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          },
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          },
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          },
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          },
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          },
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          },
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          },
          {
            name: Mock.Random.ctitle(3),
            age: Mock.Random.integer(1, 100),
            sex: Mock.Random.integer(0, 1),
            birth: Mock.Random.date('yyyy-MM-dd'),
            addr: Mock.Random.city(true)
          }
        ],
        count: 8
      }
    }
  }
}
